//
//  AutoLogin.m
//  gdemm
//
//  Created by 乔明超 on 16/4/25.
//  Copyright © 2016年 Goldencis. All rights reserved.
//

#import "AutoLogin.h"
#import "UserDefaultsUtil.h"
@implementation AutoLogin
+ (BOOL)autoLogin{

    NSString *username = [[UserDefaultsUtil shareInstance]getString:LC_USERNAME];
    NSString *password = [[UserDefaultsUtil shareInstance]getString:LC_PASSWORD];

    BOOL isLogin = [[UserDefaultsUtil shareInstance]getBool:LC_LOGINED];
    if (username != nil && password != nil && isLogin) {
        return YES;
    }else{
        return NO;
    }
}
@end
